<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//添加颜色变化
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
	//数据合法性验证
	$("#addNotice").submit(function(){
		var title = $(":input#title").val();
		var content = $("#content").val();
		
		if(title == ""){
			alert("标题不能为空！");	
			return false;
		}
		
		if(content == ""){
			alert("内容不能为空！");
			return false;
		}
		
		return true;
	});					   
});
</script>
<title><{$title}></title>
</head>

<body>
<form id="addNotice" action="index.php?controller=admin&action=addNoticeAction" method="post">
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="2" style="background-color:#4F9AD0;"><{$title}></th>
  </tr>
  <tr>
    <td width="9%">标题</td>
    <td width="91%"><input type="text" id="title" name="title" style="width:360px;" /> 
      <span style="color:#933;">*用户名必须</span> &nbsp;&nbsp;HOT样式：
      	<input type="radio" name="hot" id="hot-1" value="hot-1" /><img src="webapps/images/hot/hot-1.gif" /> 
        <input type="radio" name="hot" id="hot-2" value="hot-2" /><img src="webapps/images/hot/hot-2.gif" /> 
        <input type="radio" name="hot" id="hot-3" value="hot-3" /><img src="webapps/images/hot/hot-3.gif" />
        <input type="radio" name="hot" id="hot-4" value="hot-4" /><img src="webapps/images/hot/hot-4.gif" /> 
    </td>
  </tr>
  <tr>
    <td width="9%" style="vertical-align:top;">内容</td>
    <td width="91%"><textarea id="content" name="content" cols="70" rows="20"></textarea> 
    <span style="color:#933; vertical-align:top;">*通知内容必须</span></td>
  </tr>
  <tr>
    <td colspan="2" style="padding-left:98px;"><input type="submit" name="submit" value="提交" /> <input type="reset" name="reset" value="重置" /></td>
  </tr>
</table>
</form>
</body>
</html>
